package cn.qihua.service;

import java.util.List;

import cn.qihua.dao.ILogOrderDAO;
import cn.qihua.dao.ILogProductDAO;
import cn.qihua.model.LogOrder;
import cn.qihua.model.LogProduct;

public interface ILogService {

	public abstract LogProduct findLogProductById(Integer id);

	public abstract List<LogProduct> findLogProductByProperty(String propertyName,
			Object value);

//	public abstract List<LogProduct> findLogProductByUserId(Integer userId);
	
	public abstract List<LogProduct> findLogProductByProductId(Integer productId);

	public abstract boolean add(LogProduct transientInstance);

	public abstract boolean delLogProduct(Integer id);

	public abstract boolean edit(LogProduct transientInstance);
	
	

	//----------------------------------------------------- Order
	public abstract LogOrder findLogOrderById(Integer id);

	public abstract List<LogOrder> findLogOrderByProperty(String propertyName,
			Object value);

//	public abstract List<LogOrder> findLogOrderByUserId(Integer userId);
	
	public abstract List<LogOrder> findLogOrderByOrderId(Integer orderId);

	public abstract boolean add(LogOrder transientInstance);

	public abstract boolean delLogOrder(Integer id);

	public abstract boolean edit(LogOrder transientInstance);

	public abstract void setLogProductDAO(ILogProductDAO logProductDAO);

	public abstract void setLogOrderDAO(ILogOrderDAO logOrderDAO);

}